package com.ktwlsoft.archivemanage.domain.dao.repository;

import com.ktwlsoft.archivemanage.domain.dao.entity.UnitMember;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UnitMemberMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UnitMember record);

    int insertSelective(UnitMember record);

    UnitMember selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UnitMember record);

    int updateByPrimaryKey(UnitMember record);

    List<UnitMember> findUnitMemberList(Map<String,Object> data);

    UnitMember findUnitMemberInfoById(Long unitId);

    int addUnitMemberInfo(UnitMember unitMembe);

    int deleteUnitMemberInfo(Long unitId);

    int updateUnitMemberInfo(UnitMember unitMember);

    /**
     * 查询列表 on 2019-10-24 14:19:45
     * @param unitMember unitMember
     * @return List<UnitMember>
     */
    List<UnitMember> findList(UnitMember unitMember);

    /**
     * 根据立档ID查询信息 on 2019-10-24 14:19:42
     * @param unitId	unitId
     * @return Infrastructure
     */
    UnitMember getByUnitId(Long unitId);

    UnitMember findUnitMemberByArchivistId(Long archivistId);
}